<?php

/*
 * Copyright (C) 2012 ETPASS
 * Author:ZHY <ZhuHY, zhuhy@etpass.com>
 * Date:2013-3-6 
 * Encoding:UTF-8 
 * FileName:CashierModule.class.php
 * Link:http://www.etpass.com
 */

/**
 * Description of CashierModule
 *
 * @author e
 */
class CashierTools {

    /**
     * 根据传入的联盟ＩＤ返回相应的配置数组
     * $unionId_str 联盟ＩＤ
     * $type_str　获取数组下标值，PayType：支付方式，TicketDelivery配送方式，BankID：支持的网银ＩＤ,CreditCardID支持的信用卡银行ＩＤ
     */
    public static function get_uid_paytype($unionId_str, $type_str, $static_data) {
        $re_info = $static_data["Default_info"];
        $unionId_str = substr($unionId_str, 0, 8);
        if (!empty($unionId_str) && 0 !== count($static_data[$unionId_str][$type_str])) {
            $re_info[$type_str] = $static_data[$unionId_str][$type_str];
        }
        return $re_info[$type_str];
    }

}

?>
